package pers.vic.practice.module.system.mapper;

import org.apache.ibatis.annotations.Param;
import pers.vic.boot.base.mapper.BaseMapper;
import pers.vic.practice.module.system.model.SysDict;

import java.util.List;

/**
 * @description:字典表 Mapper
 * @author Vic.xu
 * @date: 2022-04-12 09:48
 */
public interface SysDictMapper extends BaseMapper<SysDict> {

    /**
     *  findByTypeAndCode
     * @param typeCode type code
     * @param value value
     * @return text
     */
    String findByTypeAndCode(@Param("typeCode") String typeCode, @Param("value") String value);

    List<SysDict> findByTypeCode(@Param("typeCode") String code);

    List<SysDict> findByPid(@Param("pid") String pid);

    List<SysDict> findByParentValueAndCode(@Param("parentValue") String parentValue, @Param("parentTypeCode") String parentTypeCode);
}
